PERIOD_50MHZ	 	= 20;								
FRAME_RATE 		= 30;								
RES_WIDTH 		= 1280;								
LINE_BLANK 		= 50;								
RES_HEIGHT 		= 1024;								
EXTRA_LINES 		= 10;								
FRAME_PERIOD 	= 1000000000/FRAME_RATE;			
TOTAL_PIXEL 		= (RES_WIDTH + LINE_BLANK);			
TOTAL_LINES 		= (RES_HEIGHT + EXTRA_LINES);	
temp1 = 	FRAME_PERIOD/20;
temp2 = 	TOTAL_PIXEL * TOTAL_LINES;
temp3 = 	temp1 - temp2;

CNT_WAIT_TIME 	= (FRAME_PERIOD - (TOTAL_PIXEL * TOTAL_LINES * PERIOD_50MHZ))/2/20;